package animator.phantom.controller;

/*
    Copyright Janne Liljeblad

    This file is part of Phantom2D.

    Phantom2D is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Phantom2D is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Phantom2D.  If not, see <http://www.gnu.org/licenses/>.
*/

//--- Exending classes create strings that control audio part of encode commands. These are created per audio codec.
public class AudioCodec
{
	//--- DIFFERENT AUDIO CODECS.
	public static final String MP3LAME = "mp3lame";
	public static final String LAVC = "lavc";
	public static final String TWOLAME = "twolame";
	public static final String TOOLAME = "toolame";
	public static final String FAAC = "faac";
	public static final String COPY = "copy";
	public static final String PCM = "pcm";

	private String acodec;
	protected int bitrate;

	public AudioCodec( String acodec_ ){ acodec = acodec_; }

	public String getCommand(){ return "audio codec command not implemented"; }

	//--- Currently selected bitrate made available to extending classes.
	public int bitrate(){ return CodecController.cAudioBitrate; }

	public String getCodec(){ return acodec; }

}//--- end class

